package cn.wolfcode.trip.base.service.impl;

import cn.wolfcode.trip.base.domain.NewsType;
import cn.wolfcode.trip.base.mapper.NewsTypeMapper;
import cn.wolfcode.trip.base.service.INewsTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NewsTypeServiceImpl implements INewsTypeService {
    @Autowired
    private NewsTypeMapper newsTypeMapper;

    public List<NewsType> list() {
        return newsTypeMapper.selectAll();
    }
}
